import { prop } from '@typegoose/typegoose';
import { EntityModel } from '@midwayjs/typegoose';

class LogsContent {

    @prop(String)
    public time: string;

    @prop(String)
    public row: number;

    @prop(String)
    public filePath: string;

    @prop(String)
    public logs: string;
}
@EntityModel()
export class Logs {

    @prop(String)
    public project_name: string;

    @prop(String)
    public logs_name: string;

    @prop(String)
    public category: string;

    @prop(String)
    public time: string;

    @prop(String)
    public type: string;

    @prop({ type: () => [LogsContent] })
    public content: LogsContent[];
}
